<meta charset="UTF-8">
<div id="all-alarm">
    <div class="report-item-header">
        <Row style="margin:10px;height: 35px;">
            <div style="float: left;">
                <div style="height: 35px; line-height: 35px;">{{$t("reportForm.selectDev")}}:&nbsp;</div>
            </div>
            <div style="float: left;position: relative;width: 300px;">
                <div class="search-wrapper" v-click-outside.capture="onClickOutside">
                    <i-input v-model.trim="sosoValue" icon="ios-search-outline" @on-change="sosoValueChange" @on-blur="blur" :readonly="readonly" @on-focus="focus" :placeholder="placeholder" @on-click="focus"></i-input>
                    <transition name="fade">
                        <ul class="search-item-wrapper" v-show="isShowMatchDev">
                            <li class="demo-auto-complete-item" v-for="item in filterData">
                                <div class="demo-auto-complete-group" v-show="item.devices.length">
                                    <span>{{ item.groupname }}</span>
                                </div>
                                <div v-for="option in item.devices" :value="option.groupname" :key="option.groupname" class="ivu-select-item">
                                    <span :style="{color:option.isOnline ? '#33DAD0':'#B1BBC2'}" @click="sosoSelect(option)" class="demo-auto-complete-title">{{ option.allDeviceIdTitle }}</span>
                                </div>
                            </li>
                        </ul>
                    </transition>
                </div>
            </div>
            <div style="margin-left:20px;float: left;">
                <i-button @click="cleanSelectedDev" icon="ios-nuclear-outline">{{$t("reportForm.clean")}}</i-button>
            </div>
            <div style="margin-left:20px;float: left;">
                <i-button @click="onClickQuery">{{$t("reportForm.query")}}</i-button>
            </div>
        </Row>
        <div style="margin:10px;">
            <i-table :columns="alarmColumns" :height="tableHeight" :data="alarmData" :loading="loading"></i-table>
        </div>
    </div>
</div>